home *** CD-ROM | disk | FTP | other *** search
/ Doom 3 - Resurrection of …l (USA) (Xbox Press Kit) / Doom 3 - Resurrection of Evil (USA) (Xbox Press Kit).bin / Doom3_ROE_Xbox_Press / sections / preview.swf / scripts / frame_1 / DoAction.as
Text File  |  2005-10-10  |  1KB  |  49 lines

  1. function loadPreview()
  2. {
  3.    var _loc1_ = _root;
  4.    moviecontainer.stop();
  5.    moviecontainer.unloadMovie();
  6.    splash.gotoAndStop(1);
  7.    splash._visible = true;
  8.    border.gotoAndStop("border_on");
  9.    moviecontroller._visible = false;
  10.    moviealpha._visible = false;
  11.    if(_loc1_.currentGallery == "xboxvignette" || _loc1_.currentGallery == "roe_pctrailer" || _loc1_.currentGallery == "trailer")
  12.    {
  13.       x = _loc1_.currentGallery;
  14.       moviecontainer.loadMovie("video/" + x + ".swf");
  15.    }
  16.    else
  17.    {
  18.       moviecontainer.loadMovie("video/interview" + clipNumber + ".swf");
  19.    }
  20.    loading.gotoAndPlay("check");
  21.    clearFrameCheck();
  22.    setFrameCheck();
  23. }
  24. close._visible = false;
  25. next._visible = false;
  26. previous._visible = false;
  27. moviecontroller._visible = false;
  28. moviecontroller_sm._visible = false;
  29. moviealpha._visible = false;
  30. selectedDesktop = 1;
  31. checkMovieFrame = function()
  32. {
  33.    if(moviecontainer._currentframe == moviecontainer._totalframes && moviecontainer._currentframe > 1)
  34.    {
  35.       moviecontainer.gotoAndStop(2);
  36.       splash._visible = true;
  37.       clearFrameCheck();
  38.    }
  39. };
  40. setFrameCheck = function()
  41. {
  42.    intervalID = setInterval(checkMovieFrame,300);
  43. };
  44. clearFrameCheck = function()
  45. {
  46.    clearInterval(intervalID);
  47. };
  48. stop();
  49.